import pytesseract
from PIL import Image
try:
    image = Image.open('D:/2.jpg')
    print(pytesseract.image_to_string(image))
except:
    print("image is not fond!")
    pass




